#ifndef __MWL_DEVICE_H__
#define __MWL_DEVICE_H__
#include "sfsis.h"

#define KEY_TYPE_ADC 0
#define KEY_TYPE_UART 1
/*硬件支持两种形态的按键值，分别为ADC和UART*/
/*设定按键形态，目前编码完成ADC，UART需要单独的进行编写*/
#define KEY_TYPE KEY_TYPE_ADC
typedef enum
{
    MWL_LED_GREEN,
    MWL_LED_MAX,
} MWL_Dev_LedType;

typedef enum
{
    MWL_KEY_NONE,
    MWL_KEY_MAX,
} MWL_KEY_Value;

typedef enum
{
    MWL_DEV_LED_OFF,
    MWL_DEV_LED_ON,
    MWL_DEV_LED_LONG_BLINK,
    MWL_DEV_LED_SHORT_BLINK
} MWL_Dev_LedMode;

void mwl_dev_init(void);

void mwl_dev_setLed(MWL_Dev_LedType led, MWL_Dev_LedMode mode);
void mwl_dev_update(void);

#endif